PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Fractal / Nested Dancer / Halfbreak - BlurryKalideoscope.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=2 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.700 |
| 8 | fDecay=1.000 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=6 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=2.630 |
| 27 | fWaveSmoothing=0.360 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=10.572 |
| 32 | fWarpScale=4.108 |
| 33 | fZoomExponent=1.19613 |
| 34 | fShader=1.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00001 |
| 40 | dy=0.00001 |
| 41 | warp=1.01185 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.005 |
| 50 | ob_r=0.070 |
| 51 | ob_g=1.000 |
| 52 | ob_b=0.070 |
| 53 | ob_a=0.000 |
| 54 | ib_size=0.010 |
| 55 | ib_r=0.070 |
| 56 | ib_g=0.070 |
| 57 | ib_b=1.000 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=12.000 |
| 60 | nMotionVectorsY=9.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.900 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=44 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=0 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.03347 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.00000 |
| 138 | shapecode_0_tex_zoom=1.00000 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=1.000 |
| 141 | shapecode_0_b=1.000 |
| 142 | shapecode_0_a=1.000 |
| 143 | shapecode_0_r2=1.000 |
| 144 | shapecode_0_g2=1.000 |
| 145 | shapecode_0_b2=1.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shape_0_init1=fran = 1; |
| 152 | shape_0_init2=xs = 1; |
| 153 | shape_0_init3=ys = 1; |
| 154 | shape_0_init4=xm = 0.5; |
| 155 | shape_0_init5=ym = 0.5; |
| 156 | shape_0_per_frame1=xs = xs*(1 - 2*above(xm,0.99) - 2*below(xm,0.01)); |
| 157 | shape_0_per_frame2=ys = ys*(1 - 2*above(ym,0.99) - 2*below(ym,0.01)); |
| 158 | shape_0_per_frame3= |
| 159 | shape_0_per_frame4=xm = xm + 0.03*xs*(sin(time*0.53)*0.4 + 0.6*cos(time*0.62)); |
| 160 | shape_0_per_frame5=ym = ym + 0.03*ys*(sin(time*0.29)*0.5 + 0.5*cos(time*0.78)); |
| 161 | shape_0_per_frame6= |
| 162 | shape_0_per_frame7=x = xm; |
| 163 | shape_0_per_frame8=y = ym; |
| 164 | shape_0_per_frame9= |
| 165 | shape_0_per_frame10=r = 0.5 + 0.25*sin(x*12) + 0.25*sin(y*3); |
| 166 | shape_0_per_frame11=g = 0.5 + 0.25*sin(x*7) + 0.25*sin(y*32); |
| 167 | shape_0_per_frame12=b = 0.5 + 0.25*sin(x*21) + 0.25*sin(y*16); |
| 168 | shape_0_per_frame13=r2 = r; g2 = g; b2 = b; |
| 169 | shape_0_per_frame14=rad = 0.2*(bass_att + mid_att + treb_att)/3; |
| 170 | shapecode_1_enabled=1 |
| 171 | shapecode_1_sides=44 |
| 172 | shapecode_1_additive=0 |
| 173 | shapecode_1_thickOutline=0 |
| 174 | shapecode_1_textured=0 |
| 175 | shapecode_1_num_inst=1 |
| 176 | shapecode_1_x=0.500 |
| 177 | shapecode_1_y=0.500 |
| 178 | shapecode_1_rad=0.03347 |
| 179 | shapecode_1_ang=0.00000 |
| 180 | shapecode_1_tex_ang=0.00000 |
| 181 | shapecode_1_tex_zoom=1.00000 |
| 182 | shapecode_1_r=1.000 |
| 183 | shapecode_1_g=1.000 |
| 184 | shapecode_1_b=1.000 |
| 185 | shapecode_1_a=1.000 |
| 186 | shapecode_1_r2=1.000 |
| 187 | shapecode_1_g2=1.000 |
| 188 | shapecode_1_b2=1.000 |
| 189 | shapecode_1_a2=0.000 |
| 190 | shapecode_1_border_r=1.000 |
| 191 | shapecode_1_border_g=1.000 |
| 192 | shapecode_1_border_b=1.000 |
| 193 | shapecode_1_border_a=0.000 |
| 194 | shape_1_init1=fran = 1; |
| 195 | shape_1_init2=xs = 1; |
| 196 | shape_1_init3=ys = 1; |
| 197 | shape_1_init4=xm = 0.5; |
| 198 | shape_1_init5=ym = 0.5; |
| 199 | shape_1_per_frame1=xs = xs*(1 - 2*above(xm,0.99) - 2*below(xm,0.01)); |
| 200 | shape_1_per_frame2=ys = ys*(1 - 2*above(ym,0.99) - 2*below(ym,0.01)); |
| 201 | shape_1_per_frame3= |
| 202 | shape_1_per_frame4=xm = xm + 0.03*xs*(sin(time*0.53)*0.6 + 0.4*cos(time*0.62)); |
| 203 | shape_1_per_frame5=ym = ym + 0.03*ys*(sin(time*0.29)*0.7 + 0.3*cos(time*0.78)); |
| 204 | shape_1_per_frame6= |
| 205 | shape_1_per_frame7=x = xm; |
| 206 | shape_1_per_frame8=y = ym; |
| 207 | shape_1_per_frame9= |
| 208 | shape_1_per_frame10=r = 0.5 + 0.25*sin(x*12) + 0.25*sin(y*3); |
| 209 | shape_1_per_frame11=g = 0.5 + 0.25*sin(x*7) + 0.25*sin(y*32); |
| 210 | shape_1_per_frame12=b = 0.5 + 0.25*sin(x*21) + 0.25*sin(y*16); |
| 211 | shape_1_per_frame13=r2 = r; g2 = g; b2 = b; |
| 212 | shape_1_per_frame14=rad = 0.2*(bass_att + mid_att + treb_att)/3; |
| 213 | shapecode_2_enabled=0 |
| 214 | shapecode_2_sides=44 |
| 215 | shapecode_2_additive=0 |
| 216 | shapecode_2_thickOutline=0 |
| 217 | shapecode_2_textured=0 |
| 218 | shapecode_2_num_inst=1 |
| 219 | shapecode_2_x=0.500 |
| 220 | shapecode_2_y=0.500 |
| 221 | shapecode_2_rad=0.03347 |
| 222 | shapecode_2_ang=0.00000 |
| 223 | shapecode_2_tex_ang=0.00000 |
| 224 | shapecode_2_tex_zoom=1.00000 |
| 225 | shapecode_2_r=1.000 |
| 226 | shapecode_2_g=1.000 |
| 227 | shapecode_2_b=1.000 |
| 228 | shapecode_2_a=1.000 |
| 229 | shapecode_2_r2=1.000 |
| 230 | shapecode_2_g2=1.000 |
| 231 | shapecode_2_b2=1.000 |
| 232 | shapecode_2_a2=0.000 |
| 233 | shapecode_2_border_r=1.000 |
| 234 | shapecode_2_border_g=1.000 |
| 235 | shapecode_2_border_b=1.000 |
| 236 | shapecode_2_border_a=0.000 |
| 237 | shape_2_init1=fran = 1; |
| 238 | shape_2_init2=xs = 1; |
| 239 | shape_2_init3=ys = 1; |
| 240 | shape_2_init4=xm = 0.5; |
| 241 | shape_2_init5=ym = 0.5; |
| 242 | shape_2_per_frame1=xs = xs*(1 - 2*above(xm,0.99) - 2*below(xm,0.01)); |
| 243 | shape_2_per_frame2=ys = ys*(1 - 2*above(ym,0.99) - 2*below(ym,0.01)); |
| 244 | shape_2_per_frame3= |
| 245 | shape_2_per_frame4=xm = xm + 0.03*xs*(sin(time*0.35)*0.5 + 0.5*cos(time*0.87)); |
| 246 | shape_2_per_frame5=ym = ym + 0.03*ys*(sin(time*0.92)*0.3 + 0.7*cos(time*0.26)); |
| 247 | shape_2_per_frame6= |
| 248 | shape_2_per_frame7=x = xm; |
| 249 | shape_2_per_frame8=y = ym; |
| 250 | shape_2_per_frame9= |
| 251 | shape_2_per_frame10=r = 0.5 + 0.5*sin(time*0.25); |
| 252 | shape_2_per_frame11=g = 0.5 + abs(r)*sin(time*0.5); |
| 253 | shape_2_per_frame12=b = 0.5 + abs(g)*sin(time); |
| 254 | shape_2_per_frame13=r2 = r; g2 = g; b2 = b; |
| 255 | shape_2_per_frame14=rad = 1.6*(bass_att + mid_att + treb_att)/3; |
| 256 | shapecode_3_enabled=0 |
| 257 | shapecode_3_sides=4 |
| 258 | shapecode_3_additive=0 |
| 259 | shapecode_3_thickOutline=0 |
| 260 | shapecode_3_textured=0 |
| 261 | shapecode_3_num_inst=1 |
| 262 | shapecode_3_x=0.500 |
| 263 | shapecode_3_y=0.500 |
| 264 | shapecode_3_rad=0.10000 |
| 265 | shapecode_3_ang=0.00000 |
| 266 | shapecode_3_tex_ang=0.00000 |
| 267 | shapecode_3_tex_zoom=1.00000 |
| 268 | shapecode_3_r=1.000 |
| 269 | shapecode_3_g=0.000 |
| 270 | shapecode_3_b=0.000 |
| 271 | shapecode_3_a=1.000 |
| 272 | shapecode_3_r2=0.000 |
| 273 | shapecode_3_g2=1.000 |
| 274 | shapecode_3_b2=0.000 |
| 275 | shapecode_3_a2=0.000 |
| 276 | shapecode_3_border_r=1.000 |
| 277 | shapecode_3_border_g=1.000 |
| 278 | shapecode_3_border_b=1.000 |
| 279 | shapecode_3_border_a=0.100 |
| 280 | per_frame_init_1=time=0; |
| 281 | per_frame_1=// -------------------------------- Beat Detective 007 ---------------------------------- |
| 282 | per_frame_2=sure=if(equal(sure,0),.6,sure); |
| 283 | per_frame_3=interval=if(equal(interval,0),40,interval); |
| 284 | per_frame_4=lastbeat=if(equal(lastbeat,0),frame-FPS,lastbeat); |
| 285 | per_frame_5=dbass=(bass-pbass)/FPS; |
| 286 | per_frame_6=beat=above(dbass,.6*maxdbass)*above(frame-lastbeat,FPS/3); |
| 287 | per_frame_7=sure=if(beat*below(abs(frame-(interval+lastbeat)),FPS/5), |
| 288 | per_frame_8=min(.095+sure,1),beat*(sure-.095)+(1-beat)*sure*.9996); |
| 289 | per_frame_9=sure=max(.5,sure); |
| 290 | per_frame_10=cheat=if(above(frame,lastbeat+interval+ int(FPS/10))*above(sure,.91),1,cheat); |
| 291 | per_frame_11=beat=if(cheat,1,beat); |
| 292 | per_frame_12=sure=if(cheat,.95*sure,sure); |
| 293 | per_frame_13=maxdbass=max(maxdbass*.999,dbass); |
| 294 | per_frame_14=maxdbass=max(.012,maxdbass); |
| 295 | per_frame_15=maxdbass=min(.02,maxdbass); |
| 296 | per_frame_16=interval=if(beat, frame-lastbeat,interval); |
| 297 | per_frame_17=lastbeat=if(beat,frame-cheat*int(FPS/10),lastbeat); |
| 298 | per_frame_18=cheat=0; |
| 299 | per_frame_19=pbass=bass; |
| 300 | per_frame_20=// ---------------------------------------------------------------------------------------------- |
| 301 | per_frame_21=q1=beat; |
| 302 | per_frame_22=warp=0;q8=55/FPS; |
| 303 | per_frame_23=q7=min((frame-lastBeat)/interval,1); |
| 304 | per_frame_24=aa=aa+beat; |
| 305 | per_frame_25=wave_g=q7;wave_b=q7; |
| 306 | per_frame_26=curang=.97*curang- (q1*(.4+max(bass,1.5)*rand(20)/100)*(-1+2*(aa%2)))*q8; |
| 307 | per_frame_27=cursc=1+.97*curscale+q8*.3*beat; |
| 308 | per_frame_28=sx=cursc; |
| 309 | per_frame_29=sy=1-(cursc-1); |
| 310 | per_frame_30=decay=1-.2*beat; |
| 311 | per_frame_31=ob_a=.2*beat; |
| 312 | per_frame_32=ib_a=.3*beat; |
| 313 | per_frame_33=q6=below(aa%4,2)*if(equal(aa%2,0),1,-1); |
| 314 | per_frame_34=q5=above(aa%4,1)*if(equal(aa%2,0),-1,1); |
| 315 | per_frame_35=wave_x=.5+.03*q7*q6; |
| 316 | per_frame_36=wave_y=.5+.03*q7*q5; |
| 317 | per_frame_37=rot = curang; |
| 318 | per_pixel_1=x=x-.5; |
| 319 | per_pixel_2=y=1-(y+.5); |
| 320 | per_pixel_3=zoom=zoom-.1*q8*(below(rad,.7))*(1+.5*(1-q7)); |
| 321 | warp_1=`sampler sampler_fw_clouds; |
| 322 | warp_2=`shader_body |
| 323 | warp_3=`{// sample previous frame |
| 324 | warp_4=`ret = tex2D( sampler_main, uv ).xyz; |
| 325 | warp_5=`float4 noise9 = tex3D(sampler_noisevol_hq, |
| 326 | warp_6=` ((uv.xyy*q27 |
| 327 | warp_7=` )*texsize.xyy*texsize_noisevol_hq.zww |
| 328 | warp_8=` ).xyz* |
| 329 | warp_9=` float3(1,1,0)*0.05 + |
| 330 | warp_10=` time*float3(0,0,1)*q29 |
| 331 | warp_11=` ); |
| 332 | warp_12=`if(ret.x> q21*q13 && ret.x<= q24*q11 )ret.y += (noise9).x*.5; |
| 333 | warp_13=`if(ret.y> q22*q11 && ret.y<= q25*q12 )ret.z += (noise9).y*.5; |
| 334 | warp_14=`if(ret.z> q23*q12 && ret.z<= q26*q13 )ret.x += (noise9).z*.5; |
| 335 | warp_15=`float blur =sin(bass*90)*rad; |
| 336 | warp_16=`ret=0.125*( |
| 337 | warp_17=`GetPixel(float2(uv.x-0.01*blur,uv.y-0.01*blur)) + |
| 338 | warp_18=`GetPixel(float2(uv.x+0.01*blur,uv.y+0.01*blur)) + |
| 339 | warp_19=`GetPixel(float2(uv.x-0.01*blur,uv.y+0.01*blur)) + |
| 340 | warp_20=`GetPixel(float2(uv.x+0.01*blur,uv.y-0.01*blur)) + |
| 341 | warp_21=`GetPixel(float2(uv.x,uv.y-0.01*blur)) + |
| 342 | warp_22=`GetPixel(float2(uv.x,uv.y+0.01*blur)) + |
| 343 | warp_23=`GetPixel(float2(uv.x-0.01*blur,uv.y)) + |
| 344 | warp_24=`GetPixel(float2(uv.x+0.01*blur,uv.y))); |
| 345 | warp_25=`//add a 'bass overbright' effect: |
| 346 | warp_26=`ret-=-(lum(ret)<sin(time*90))*ret*blur+(lum(ret)>sin(-time*90))*ret*blur; |
| 347 | warp_27=`} |
| 348 | comp_1=`shader_body |
| 349 | comp_2=`{ |
| 350 | comp_3=` float rad_lq = rad * length(texsize.xy)*0.5; |
| 351 | comp_4=` float ang_lq = ang; |
| 352 | comp_5=` float2 uv_temp1 = (uv - 0.5) * texsize.xy; |
| 353 | comp_6=` float rad_hq = length(uv_temp1); |
| 354 | comp_7=` float ang_hq = atan2(-uv_temp1.y, uv_temp1.x); |
| 355 | comp_8=` |
| 356 | comp_9=` float2 uv2 = (uv - 0.5); |
| 357 | comp_10=` float rad2 = rad_lq*0.8; |
| 358 | comp_11=` float ang2 = ang_lq * M_INV_PI_2; |
| 359 | comp_12=` |
| 360 | comp_13=` // ROTATION OVER TIME |
| 361 | comp_14=` #if 1 |
| 362 | comp_15=` ang2 += time*0.025; //rotate over time |
| 363 | comp_16=` #endif |
| 364 | comp_17=` |
| 365 | comp_18=` // FIN TYPE |
| 366 | comp_19=` float fins = 3 + floor(rand_preset.z*5.95); |
| 367 | comp_20=` #if 1 // SHARP FINS |
| 368 | comp_21=` ang2 = frac(ang2*fins)/fins; |
| 369 | comp_22=` // ENABLE THIS TO MAKE THE FINS ALTERNATE: (seamless!) |
| 370 | comp_23=` ang2 = abs(ang2 - 0.5/fins); |
| 371 | comp_24=` #else // COSINE FINS - a bit slow |
| 372 | comp_25=` ang2 = cos(ang2*M_PI_2*fins) * 0.023; |
| 373 | comp_26=` #endif |
| 374 | comp_27=` |
| 375 | comp_28=` // RADIAL KALEIDOSCOPING? |
| 376 | comp_29=` #if 0 |
| 377 | comp_30=` rad2 *= g_fTexSize.z; |
| 378 | comp_31=` // choose one: |
| 379 | comp_32=` //rad2 = lerp(rad2, frac(rad2*3)/3.0, 0.5); |
| 380 | comp_33=` rad2 = cos(rad2*5); |
| 381 | comp_34=` //rad2 = sqrt(rad2)*0.5; |
| 382 | comp_35=` //rad2 += abs(frac(rad2*7)-0.5)/7.0 * 1.15; // stepifier |
| 383 | comp_36=` //rad2 += cos(rad2*61)*0.02; |
| 384 | comp_37=` rad2 *= g_fTexSize.x; |
| 385 | comp_38=` #endif |
| 386 | comp_39=` |
| 387 | comp_40=` ang2 *= M_PI_2; |
| 388 | comp_41=` uv2 = 0.5 + rad2*float2(cos(ang2),sin(ang2))*texsize.zw; |
| 389 | comp_42=` |
| 390 | comp_43=` ret = tex2D(sampler_main, uv2).xyz; |
| 391 | comp_44=` ret *= 1.333; // a little bit of overbright |
| 392 | comp_45=`} |